<!DOCTYPE html>
<html lang="en">
	<head>
		<meta charset="UTF-8" />
		<meta http-equiv="X-UA-Compatible" content="IE=edge" />
		<meta name="viewport" content="width=device-width, initial-scale=1.0" />
		<title>哈希表</title>
	</head>
	<body>
		<script src="index.js"></script>
		<script>
			let hasTable = new HasTable()
			hasTable.put('张三', { age: 18, subject: 'java' })
			hasTable.put('李四', { age: 16, subject: 'php' })
			hasTable.put('王五', { age: 11, subject: 'vue' })
			hasTable.put('赵六', { age: 19, subject: 'javascript' })
			hasTable.put('赵六1', { age: 19, subject: 'javascript' })
			hasTable.put('赵六2', { age: 19, subject: 'javascript' })
			hasTable.put('赵六3', { age: 19, subject: 'javascript' })
			hasTable.put('赵六4', { age: 19, subject: 'javascript' })
			hasTable.put('赵六5', { age: 19, subject: 'javascript' })
			hasTable.put('赵六6', { age: 19, subject: 'javascript' })
			console.log(hasTable.del('张三'))
			console.log(hasTable.del('王五'))
			console.log(hasTable.del('赵六1'))
			console.log(hasTable.del('赵六2'))
			console.log(hasTable.del('赵六3'))
			hasTable.put('赵六7', { age: 19, subject: 'javascript' })
			hasTable.put('赵六8', { age: 19, subject: 'javascript' })
			hasTable.put('赵六9', { age: 19, subject: 'javascript' })
			console.log('去除空元素后', hasTable.toString())
			console.log('真实的内存分布', hasTable)
			console.log(hasTable.size())
		</script>
	</body>
</html>
